// electron 暴露出来的预设API方法

// 主窗口的一些命令
export const controlWindow = {
  minWindow: () => window.controlWindow.minWindow() || '',
  maxWindow: () => window.controlWindow.maxWindow() || '',
  closeWindow: () => window.controlWindow.closeWindow() || '',
}

// APP设备的一些命令
export const deviceControl = {
  deviceIdCreate: () => window.deviceControl.deviceIdCreate() || '',
  deviceIdGet: () => window.deviceControl.deviceIdGet() || '',
  deviceIdSend: (callback) => window.deviceControl.deviceIdSend(callback) || '',
}
